﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="triggers.aspx.cs" Inherits="WebAppAsp_MiprimerPrograma.triggers" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>    

            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:TextBox ID="txtContenido" runat="server" OnTextChanged="txtContenido_TextChanged"></asp:TextBox>
<br />
                    <asp:Label ID="lbContenidotxt" runat="server"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="txtContenido" EventName="TextChanged" />
                </Triggers>
            </asp:UpdatePanel>

        </div>
        <div>

            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
                    </asp:Timer>
                    <asp:Label ID="lbAleatorio" runat="server"></asp:Label>
                </ContentTemplate>
            </asp:UpdatePanel>

        </div>
        <div>

            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:DropDownList ID="cbLista" runat="server" OnSelectedIndexChanged="cbLista_SelectedIndexChanged">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                    </asp:DropDownList>
<br />
                    <asp:Label ID="lbSelecionado" runat="server"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="cbLista" EventName="SelectedIndexChanged" />
                </Triggers>
            </asp:UpdatePanel>

        </div>
    </form>
</body>
</html>
